<!-- 图片配置 -->
<template>
  <div>
    <el-form-item label="开启旋转">
      <el-switch v-model="main.activeOption.rotate"></el-switch>
    </el-form-item>
    <el-form-item label="透明度">
      <el-slider
        v-model="main.activeOption.opacity"
        :max="1"
        :step="0.1"
      ></el-slider>
    </el-form-item>
    <template v-if="main.activeOption.rotate">
      <el-form-item label="旋转时间">
        <el-input-number
          v-model="main.activeOption.duration"
          controls-position="right"
        >
        </el-input-number>
      </el-form-item>
    </template>
    <el-form-item label="图片选择" style="margin-bottom: 8px">
      <l-img-select v-model="main.activeObj.data.value" />
    </el-form-item>
  </div>
</template>

<script>
export default {
  inject: ["main"],
};
</script>

<style>
</style>